home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
426-450
/
disk_445
/
turbotext
/
rexx
/
countwords.ttx
< prev
next >
Wrap
Text File
|
1992-05-06
|
405b
|
27 lines
/** $VER: CountWords.ttx Demo 1.0 (26.12.90)
**
** Count the number of words in the document
**
** Written by Martin Taillefer
**/
OPTIONS RESULTS
SetDisplayLock ON
SetBookmark 0
SetStatusBar TEMPORARY "Counting..."
count = 0
MoveSOF
DO UNTIL RC ~= 0
MoveNextWord
count = count + 1
END
SetStatusBar "Counted " || count || " words"
MoveBookmark 0
SetDisplayLock OFF